package com.ruoyi.system.domain.c5;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * C5Game账户对象 c5_account
 *
 * @author ruoyi
 * @date 2025-10-15
 */
@Data
public class C5Account implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 雪花id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long id;

    /**
     * 后台管理sys_user的用户id
     */
    @Excel(name = "后台管理sys_user的用户id")
    private Long userId;

    /**
     * c5的uid
     */
    @Excel(name = "c5的uid")
    private Long uid;

    /**
     * c5的app_key
     */
    @Excel(name = "c5的app_key")
    private String appKey;

    /**
     * c5的平台名称
     */
    @Excel(name = "c5的平台名称")
    private String c5Name;

    /**
     * 账户余额
     */
    @Excel(name = "账户余额")
    private Long balance;

    /**
     * 求购余额
     */
    @Excel(name = "求购余额")
    private Long buyBalance;

    /**
     * steamId
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    @Excel(name = "steamId")
    private Long steamId;

    /**
     * steam头像
     */
    @Excel(name = "steam头像")
    private String avatar;

    /**
     * 状态 0:禁用 1:正常
     */
    @Excel(name = "状态 0:禁用 1:正常")
    private Long status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getUid() {
        return uid;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setC5Name(String c5Name) {
        this.c5Name = c5Name;
    }

    public String getC5Name() {
        return c5Name;
    }

    public void setBalance(Long balance) {
        this.balance = balance;
    }

    public Long getBalance() {
        return balance;
    }

    public void setBuyBalance(Long buyBalance) {
        this.buyBalance = buyBalance;
    }

    public Long getBuyBalance() {
        return buyBalance;
    }

    public void setSteamId(Long steamId) {
        this.steamId = steamId;
    }

    public Long getSteamId() {
        return steamId;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("uid", getUid())
                .append("appKey", getAppKey())
                .append("c5Name", getC5Name())
                .append("balance", getBalance())
                .append("buyBalance", getBuyBalance())
                .append("steamId", getSteamId())
                .append("avatar", getAvatar())
                .append("status", getStatus())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
